package com.vf.g.controller;


import com.jfinal.core.ActionKey;
import com.vf.core.controller.BaseController;
import com.vf.s.common.model.biz.BizScene;

public class VFGController extends BaseController{
	
	public void index() {
		String id = getPara("sceneId");
		BizScene model = BizScene.dao.findById(id);
		if(model!=null) {
			model.setViewTimes(model.getViewTimes()+1);
			model.update();
		}
		this.setAttr("id", id);
		render("index.html");
	}
	
	@ActionKey("/{type}/{z}/{x}/{y}")
	public void getTile() {
		this.renderText("dsfds");
	}
	//@RequestMapping(value = "/{type}/{z}/{x}/{y}",produces="application/x-protobuf")
	
}
